﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QzgfFrame.Utility.Core.Export
{
    class ExportFactory
    {
        public static ExportFacade GetInstance(String type)
        {
            ExportFacade export = null;
            if (type == null)
            {
                return null;
            }
            else if (type.Equals("xls"))
            {
                    export = new ExportToPoiExcel();
            }
            else if (type.Equals("htmlxls"))
            {
                   // export = new ExportToHtmlExcel();

            }
            else if (type.Equals("xml"))
            {
                  //  export = new ExportToXml();
            }
            else if (type.Equals("pdf"))
            {
                //暂未实现
            }

            return export;
        }

    }
}
